From: Matthew Barnes Date: Tue, 14 Apr 2015 12:53:48 +0000 (-0400) Subject: tests: Fix root uid check in test-commit-sign.sh X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~801 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a1352fec9deb2f8aaaf2a61af0f5c83611962507;p=ostree.git tests: Fix root uid check in test-commit-sign.sh --- diff --git a/tests/test-commit-sign.sh b/tests/test-commit-sign.sh index 01a3a2ed..0db0048f 100755 --- a/tests/test-commit-sign.sh +++ b/tests/test-commit-sign.sh @@ -25,7 +25,7 @@ fi # Skip the test when non-root as gpgme would not read files owned by # another user. -if test "$(id -i)" != "0"; then +if test "$(id -u)" != "0"; then exit 77 fi